<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_index none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="inquiry" sub="hold" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_over_x m_flex1">
                <div class="taken_box">
                    <ul class="breadcrumbs">
                        <li><span>数据查询</span>&gt;</li>
                        <li class="on">持仓查询</li>
                    </ul>
                    <div class="m_search m_box">
                        <div class="m_flex1">
                            <input type="text" class="m_input medium" maxlength="12" v-inputnumber placeholder="交易号" v-model="no">
                            <input v-time type="text" class="m_input m_time" placeholder="结算开始日" v-model="start">~
                            <input v-time type="text" class="m_input m_time" placeholder="结算结束日" v-model="end">
                            <productselect :col_id.sync="col_id" name="藏品名称"></productselect>
                            <input type="text" class="m_input medium" v-inputnumber placeholder="号段" v-model="sn">
                            <button class="m_btn line" v-on:click="reSearch">查询</button>
                            <button class="m_btn line" v-on:click="reset">重置</button>
                        </div>
                        <a class="m_btn" href="/user/collection/export_list" target="_blank">导出</a>
                    </div>
                    <table class="m_table">
                        <thead>
                            <tr>
                                <th>结算日</th>
                                <th>交易号</th>
                                <th>姓名</th>
                                <th>运营中心/会员单位</th>
                                <th>藏品ID</th>
                                <th>藏品名称</th>
                                <th>
                                    <div class="m_sort {{ order == 1 ? 'on' : '' }}" v-on:click="setOrder(1)">
                                        昨日持有量 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 2 ? 'on' : '' }}" v-on:click="setOrder(2)">
                                        当日买入量 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 3 ? 'on' : '' }}" v-on:click="setOrder(3)">
                                        当日卖出量 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 4 ? 'on' : '' }}" v-on:click="setOrder(4)">
                                        t+n锁仓 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 5 ? 'on' : '' }}" v-on:click="setOrder(5)">
                                        当前锁仓 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 6 ? 'on' : '' }}" v-on:click="setOrder(6)">
                                        冻结量 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 7 ? 'on' : '' }}" v-on:click="setOrder(7)">
                                        当日可卖量 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 8 ? 'on' : '' }}" v-on:click="setOrder(8)">
                                        当日持有量 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 9 ? 'on' : '' }}" v-on:click="setOrder(9)">
                                        买入成本 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 10 ? 'on' : '' }}" v-on:click="setOrder(10)">
                                        持有货款 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 11 ? 'on' : '' }}" v-on:click="setOrder(11)">
                                        商品市值 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 12 ? 'on' : '' }}" v-on:click="setOrder(12)">
                                        浮动盈亏 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                                <th>
                                    <div class="m_sort {{ order == 13 ? 'on' : '' }}" v-on:click="setOrder(13)">
                                        盈亏比例 <i class="{{ oFlag[order].flag ? 'up' : 'down' }}"></i>
                                    </div>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-if="list.length < 1">
                                <td colspan="19">
                                    <div class="tc">
                                        <template v-if="search">没有符合条件的内容</template>
                                        <template v-else>暂无数据</template>
                                    </div>
                                </td>
                            </tr>
                            <tr v-for="item in list" v-if="list.length > 0">
                                <td>{{ item.date }}</td>
                                <td>{{ item.no }}</td>
                                <td>{{ item.name }}</td>
                                <td>{{ item.center }}</td>
                                <td>{{ item.code }}</td>
                                <td><span class="m_textOver">{{ item.col_name }}</span></td>
                                <td>{{ item.yesterday }}</td>
                                <td>{{ item.cnt_buy }}</td>
                                <td>{{ item.cnt_sell }}</td>
                                <td>{{ item.tn_lock }}</td>
                                <td>{{ item.current_lock }}</td>
                                <td>{{ item.cnt_frozen }}</td>
                                <td>{{ item.cnt_can_sell }}</td>
                                <td>{{ item.total_today }}</td>
                                <td>{{ item.cost | markMoney }}</td>
                                <td>{{ item.payment | markMoney }}</td>
                                <td>{{ item.market_value | markMoney }}</td>
                                <td>{{ item.profit_loss | markMoney}}</td>
                                <td>{{ item.r_profit_loss }}%</td>
                            </tr>
                        </tbody>
                    </table>
                    <pages :cur.sync="cur" :all.sync="all" v-on:btn-click="getData"></pages>
                </div>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>

    <script>
        seajs.use( "../../js/page/inquiry/hold" );
    </script>

</body>
</html>
